             package com.java.diagnostics.visualizer.memory.parser;
             
             import com.java.diagnostics.visualizer.data.DataLevel;
             import com.java.diagnostics.visualizer.data.SourceData;
             import com.java.diagnostics.visualizer.data.TupleData;
             import com.java.diagnostics.visualizer.data.axes.XDataAxis;
             import com.java.diagnostics.visualizer.factory.DataFactory;
             import com.java.diagnostics.visualizer.factory.SourceDataFactory;
             import java.util.HashSet;
             import java.util.Iterator;
             import java.util.Set;
             
             public class NativeMemoryParser
             {
               protected static final String EMPTY_STRING = "";
               public static final String CATEGORY = "Native memory";
               public static final DataFactory factory = DataFactory.getFactory("Native memory");
               
               protected static final DataFactory hiddenFactory = DataFactory.getFactory(DataFactory.HIDDEN);
               
               protected static final String PARSE_METHOD = "parse";
               
               protected static final String PLATFORM = "platform";
               protected boolean isGoodData = false;
               
               protected int currentGCNumber = -1;
               
               public static final SourceDataFactory SOURCE_DATA_FACTORY = SourceDataFactory.getFactory();
               
               protected String currentComment = "";
               
               protected SourceData sourceData = null;
               
               protected final String className = getClass().getName();
               
               protected XDataAxis xAxis;
               
               protected static final int UNSET = -1;
               
               protected double runningTimestamp = 0.0D;
               protected Set allTuples;
               
               protected void writeOutSourceData()
               {
                 if (this.isGoodData) {
                   Iterator it = this.allTuples.iterator();
                   
                   while (it.hasNext()) {
                     TupleData tuple = (TupleData)it.next();
                     this.sourceData.addData(tuple, DataLevel.VARIANT);
                   }
                 }
               }
               
               protected void initialiseTuples() {
                 this.allTuples = new HashSet();
               }
             }


